import { dialog } from '../antd-dialog/index.js';
// 重置登录密码、一级密码
export const resetPassword = () => {
  return new Promise((resolve, reject) => {
    dialog({
      content: () => import('./UpdatePassword.vue'),
      dialogProps: {
        title: '修改密码',
        onOk: () => resolve(),
        onCancel: () => reject(),
      },
    });
  });
};
// 重置二级密码
export const resetSecondPassword = () => {
  return new Promise((resolve, reject) => {
    dialog({
      content: () => import('./form.vue'),
      dialogProps: {
        title: '修改密码',
      },
    });
  });
};
